import getState from "@/api/state";
import HorizontalBarChart from "@/template/HorizontalBarChart/HorizontalBarChart";
import ZuiEchart from "@/template/zuiEchart/zuiEchart";
import React from "react";
import { useEffect } from "react";
import { useState } from "react";

const Actmodule7 = ({ condition }) => {
    const [message, setMessage] = useState("暂无数据");
    const [loading, setLoading] = useState(true);
    const [state, setState] = useState({
        data: []
    })

    useEffect(() => {
        getState({
            state,
            condition,
            setState,
            setLoading,
            setMessage,
        })
    }, [condition])
    // 
    return (
        <>
            <HorizontalBarChart
                message={message}
                loading={loading}
                title="常住位置统计"
                style={{ width: "25%" }}
                hideBtn
                sort={"up"}
                data={
                    [
                        state
                    ]
                }
            />
        </>
    )
}
export default Actmodule7;